package com.easybbs.mappers;

import com.easybbs.entity.po.MedicinePO;
import com.easybbs.entity.vo.web.ClassVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface LibraryMapper <T, P> extends BaseMapper<T, P>{

    @Select("select Class as class1,Orders as class2  from class_order_view")
    List<ClassVO> selectClasses();

    @Select("select * from medicine where Class2=#{itemName}")
    List<MedicinePO> selectClassItem(String itemName);
}
